Learn R Programming

bivpois (version 1.1)

Random values generation from the bivariate Poisson distribution: Random values generation from the bivariate Poisson distribution

Description

Random values generation from the bivariate Poisson distribution.

Usage

rbp(n, lambda)

Value

A matrix with n rows and 2 columns.

Arguments

n

The sample size.

lambda

A vector with the three parameters, \((\lambda_1,\lambda_2,\lambda_3)\) of the Poisson distribution.

Author

Michail Tsagris.

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

Details

In order to generate values from this distribution one needs three independent Poisson variables, \(X_1 \sim \text{Po}\left(\lambda_1\right)\), \(X_2 \sim \text{Po}\left(\lambda_2\right)\) and \(X_3 \sim \text{Po}\left(\lambda_3\right)\). Then, \(\left(X,Y\right)=\left(X_1+X3,X_2+X_3\right) \sim \text{BP}\left(\lambda_1,\lambda_2,\lambda_3\right)\).

References

Kocherlakota S. and Kocherlakota K. (1992). Bivariate discrete distributions. CRC PRess.

See Also

bp.mle

Examples

Run this code
x <- rbp( 300, c(3, 5, 2) )
bp.mle(x)

Run the code above in your browser using DataLab